#ifndef IO_READER_H
#define IO_READER_H

#include "Scheduler.h"
#include "IOPort.h"
class IOReader : public Scheduler
{
public:
    IOReader(IOPort& ioport);
    virtual  ~IOReader();
    void schedule() override;
    void update() override;
    void dispatch(uint8_t* data,size_t size) override;
    void cleanup() override;
private:
    IOPort& _ioport;
    unsigned long _last_millis;
   
};

#endif